phone_list = ['13880001111', '13999992222', '15099993333']
password_list = ['123456', '456def', 'aaaaaa']
# 目标：得到一个元组列表类型的数据
# 0.定义空列表
result = []
# 遍历手机号
for i in phone_list:
    # 变量对应的密码
    for j in password_list:
        # 账号和密码组合
        element = (i, j)
        result.append(element)
# 打印result
print(result)
# 计算有几种场景需要覆盖
print(len(result))


# 方式1：for循环
res1 = []
for i in range(1, 11):
    res1.append(i ** 2)
print(res1)

# 方式2：列表推导式
res2 = [i ** 2 for i in range(1, 11)]
print(res2)

# 表达式for变量in可迭代对象if条件判断
res3 = [i ** 2 for i in range(1, 11) if i % 2 == 0]
print(res3)

# 表达式for变量in可迭代对象for变量in可迭代对象
result1 = [(i, j) for i in phone_list for j in password_list]
print(result1)